package com.leiou.pojo;

import java.io.Serializable;
import java.time.LocalDate;

/*
 *  胡又中
 * */
public class Student implements Serializable {
    private String studentId;       // 主键（蓝色高亮字段），varchar
    private String name;            // 姓名，varchar
    private String gender;          // 性别，varchar
    private LocalDate birthDate;    // 出生日期，date
    private String idCard;          // 身份证号，varchar
    private String college;         // 学院，varchar
    private String major;           // 专业，varchar
    private String className;       // 班级名称，varchar
    private Integer status;          // 状态，varchar
    private Integer dormId;          // 宿舍ID（修正自dormild），varchar
    private String bedNumber;       // 床位号，varchar
    private String phone;           // 电话，varchar
    private String email;           // 邮箱（对应混乱的`3`字段），varchar
    private String emergencyContact;// 紧急联系人，varchar
    private String username;        // 用户名，varchar
    private String password;

    public Student() {
    }

    public Student(String password, String username, String emergencyContact, String email, String phone, String bedNumber, Integer dormId, Integer status, String className, String major, String college, String idCard, LocalDate birthDate, String gender, String name, String studentId) {
        this.password = password;
        this.username = username;
        this.emergencyContact = emergencyContact;
        this.email = email;
        this.phone = phone;
        this.bedNumber = bedNumber;
        this.dormId = dormId;
        this.status = status;
        this.className = className;
        this.major = major;
        this.college = college;
        this.idCard = idCard;
        this.birthDate = birthDate;
        this.gender = gender;
        this.name = name;
        this.studentId = studentId;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getStudentId() {
        return studentId;
    }

    public void setStudentId(String studentId) {
        this.studentId = studentId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public LocalDate getBirthDate() {
        return birthDate;
    }

    public void setBirthDate(LocalDate birthDate) {
        this.birthDate = birthDate;
    }

    public String getIdCard() {
        return idCard;
    }

    public void setIdCard(String idCard) {
        this.idCard = idCard;
    }

    public String getCollege() {
        return college;
    }

    public void setCollege(String college) {
        this.college = college;
    }

    public String getMajor() {
        return major;
    }

    public void setMajor(String major) {
        this.major = major;
    }

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    public Integer getDormId() {
        return dormId;
    }

    public void setDormId(Integer dormId) {
        this.dormId = dormId;
    }

    public String getBedNumber() {
        return bedNumber;
    }

    public void setBedNumber(String bedNumber) {
        this.bedNumber = bedNumber;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getEmergencyContact() {
        return emergencyContact;
    }

    public void setEmergencyContact(String emergencyContact) {
        this.emergencyContact = emergencyContact;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    // 密码，varchar

    @Override
    public String toString() {
        return "Student{" +
                "studentId=" + "studentId" +
                ", name='" + name + '\'' +
                ", gender='" + gender + '\'' +
                ", birthDate=" + birthDate +
                ", idCard='" + idCard + '\'' +
                ", college='" + college + '\'' +
                ", major='" + major + '\'' +
                ", className='" + className + '\'' +
                ", status=" + status +
                ", dormId=" + dormId +
                ", bedNumber='" + bedNumber + '\'' +
                ", phone='" + phone + '\'' +
                ", email='" + email + '\'' +
                ", emergencyContact='" + emergencyContact + '\'' +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                '}';
    }
}